package com.kanshu.ksgb.fastread.doudou.module.personal.activity

import android.annotation.SuppressLint
import android.os.Bundle
import android.widget.TextView
import com.alibaba.android.arouter.facade.annotation.Route
import com.kanshu.ksgb.fastread.doudou.R
import com.kanshu.ksgb.fastread.doudou.app.constants.ARouterConfig
import com.kanshu.ksgb.fastread.doudou.base.baseui.BaseActivity
import com.kanshu.ksgb.fastread.doudou.common.util.ToastUtil
import com.kanshu.ksgb.fastread.doudou.common.util.Utils
import com.umeng.analytics.MobclickAgent

@Route(path = ARouterConfig.PERSONAL_ABOUT_US)
class AboutUsActivity : BaseActivity() {

    @SuppressLint("SetTextI18n")
    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        setContentView(R.layout.activity_about_our)
        setTitle("关于我们")
        val versionName = Utils.getVersionName(this)
        val version = findViewById(R.id.version) as TextView
        version.text = "当前版本$versionName"
        val textView = findViewById(R.id.company_about) as TextView
        textView.text = "Copyright©2018" + getString(R.string.company_about)
    }

    override fun onResume() {
        super.onResume()
        MobclickAgent.onResume(this)
        MobclickAgent.onPageStart(javaClass.simpleName)
    }

    override fun onPause() {
        super.onPause()
        MobclickAgent.onPause(this)
        MobclickAgent.onPageEnd(javaClass.simpleName)
    }

}
